import Vue from 'vue'
import Router from 'vue-router'
import bookCity from '@/views/bookCity'
import bookShelf from '@/views/bookShelf'
import detail from '@/views/detail'
import read from '@/views/read'
import login from '@/views/login'

Vue.use(Router)

export default new Router({
  routes: [
    {
        path: '/',
        name:'bookCity',
        component: bookCity
    },
    {
        path:'/bookShelf',
        name:'bookShelf',
        component:bookShelf
    },
    {
        path:'/detail',
        name:'detail',
        component:detail
    },
    {
        path:'/read/:fiction_id/:capter_id',
        name:'read',
        component:read
    },
    {
        path:'/login',
        component:login
    }
  ]
})
